<?php
class View_Admin_Login_Template extends MVC_VIEW {
	public $oTemp;
	public function __construct($oModel){
		$this->initTemplate($oModel);
	}
	public function initTemplate($oModel){
		global $sModule, $sFile;
		
		$this->setTemplate(PATH_TEMPLATE_ADMIN . "html/login.html");
		$this->oTemp->assign_file( 'tempFooter', PATH_TEMPLATE_ADMIN.'html/temp_footer.html' );
		
		/**
		 * TRANSLATE
		 */
		$sFileLanguage = PATH_INCLUDE."ini/language/".FOLDER_LANGUAGE."index.ini";
		$this->translate($sFileLanguage);
		
		
		$oModel->oLang = new MVC_Read_ini();
		$oModel->oLang->set_file($sFileLanguage);
		$oModel->aLanguage = $this->oLang->parse();
	}
	
	public function displayPage($oModel){
		$this->oTemp->assign('sErrorMsg',$oModel->getErrorMsg());
		$this->oTemp->assign('sMsg',$oModel->getMsg());
		/**
		 * ASSIGN REQUEST ITEM
		 */
		$aDataRequest = $oModel->getAllData();
		$this->assignExtract($aDataRequest);
		/**
		 * 
		 */
		$this->oTemp->parse('main');
		$this->printHTML('main');
	}
}

?>